﻿using System;
using Metro.Kashikoi.Management;

namespace Metro.Kashikoi.ConsoleHost
{
    class Program
    {
        static void Main(string[] args)
        {
            ServiceManager manager = ServiceManager.Instance;

            try
            {
                manager.Initialize();
                Console.WriteLine("Services to be started.");
                foreach (var item in manager.ServiceName)
                {
                    Console.WriteLine(item);
                }

                manager.Start();
                Console.WriteLine("Services Started.");
                Console.ReadLine();
            }
            finally
            {
                manager.Stop();
            }
        }
    }
}
